/**
 * 
 */
package com.seascape.swms.framework.model;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Lay
 *
 */
public class PageResult<T> {

	private List<T> data = new ArrayList<T>();
	
	private long total;
	
	public PageResult(List<T> data,long total) {
		this.data = data;
		this.total = total;
	}

	/**
	 * @return the data
	 */
	public List<T> getData() {
		return data;
	}

	/**
	 * @param result the data to set
	 */
	public void setResult(List<T> data) {
		this.data = data;
	}

	/**
	 * @return the total
	 */
	public Long getTotal() {
		return total;
	}

	/**
	 * @param total the total to set
	 */
	public void setTotal(Long total) {
		this.total = total;
	}
	
	
}
